 <?php 
  require_once("konf.php"); 
  if(isSet($_REQUEST["kustutusid"])){
    $kask=$yhendus->prepare("DELETE FROM mikrobussid WHERE id=?");
    $kask->bind_param("i", $_REQUEST["kustutusid"]);
    $kask->execute(); 
	$yhendus->close();
	header("Location: $_SERVER[PHP_SELF]?lisatudsoov=$_REQUEST[kliendinimi]");
	exit();
  }
     
  }
?>
 
 